package enums;

/**
 * @author winkyle
 * @date 2018/06/22
 * @description 返回结果消息和码枚举
 */
public enum ResultEnum {
	UNKNOWNERROR(0,"未知错误"),
	SUCCESS(1,"成功"),
	PARAMWRONG(2,"参数错误"),
	LOGINFAILED(3,"登录失败"),
	USERNOEXIST(4,"用户不存在"),
	PASSWORDWRONG(5,"密码错误"),
	NOLOGIN(6,"未登录"),
	NODATA(7,"暂无数据"),
	FILEUPLOADFAILURE(8,"文件上传失败"),
	;
	private int code;
	private String msg;
    ResultEnum(int code,String msg) {
		// TODO Auto-generated constructor stub
    	this.code = code;
    	this.msg = msg;
	}
	public int getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
}
